package com.niit.gams.pojo;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class TreeNode {
  private Long id;
  private String name;
  private Long pId;
  private String url;
  private String permission;
  private String icon;
  private String type;
  private List<TreeNode> children;

  @Override
  public String toString() {
    return "TreeNode{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", pId=" + pId +
            ", url='" + url + '\'' +
            ", permission='" + permission + '\'' +
            ", icon='" + icon + '\'' +
            ", type='" + type + '\'' +
            ", children=" + children +
            '}';
  }
}
